From: Jonas Dreßler Date: Tue, 2 Jun 2020 14:23:59 +0000 (+0200) Subject: workspace: Remove slot property of WindowPreview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~252 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f4fcba74ff0a36afe6d6febd1aa36a2fbc4f48d6;p=gnome-shell.git workspace: Remove slot property of WindowPreview Since the slot property was only accessed by the old WindowOverlays to get the position and size of the preview, we can safely stop setting it and remove that property now. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1307 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 1f40f1d5f..c7d9d8166 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -231,8 +231,6 @@ var WindowPreview = GObject.registerClass({ this._delegate = this; this.slotId = 0; - this._slot = [0, 0, 0, 0]; - this._dragSlot = [0, 0, 0, 0]; this._stackAbove = null; this._windowContainer.layout_manager.connect( @@ -513,17 +511,6 @@ var WindowPreview = GObject.registerClass({ return this.hasAttachedDialogs(); } - set slot(slot) { - this._slot = slot; - } - - get slot() { - if (this.inDrag) - return this._dragSlot; - else - return this._slot; - } - deleteAll() { const windows = this._windowContainer.layout_manager.getWindows(); @@ -732,7 +719,6 @@ var WindowPreview = GObject.registerClass({ } _onDragBegin(_draggable, _time) { - this._dragSlot = this._slot; this.inDrag = true; this.hideOverlay(false); this.emit('drag-begin'); @@ -1362,7 +1348,6 @@ class Workspace extends St.Widget { const cloneWidth = cellWidth; const cloneHeight = cellHeight; - clone.slot = [x, y, cloneWidth, cloneHeight]; if (!clone.positioned) { // This window appeared after the overview was already up @@ -1559,7 +1544,6 @@ class Workspace extends St.Widget { const height = win._overviewHint.height; delete win._overviewHint; - clone.slot = [x, y, width, height]; clone.positioned = true; clone.set_position(x, y);